Updated GtkCellView for new gtk_cell_area_context_allocate() api.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 26 Nov 2010 12:30:30 +0000 (21:30 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 4 Jan 2011 14:37:09 +0000 (23:37 +0900)
gtk/gtkcellview.c

index 3a5031b41d8dd1eecc03a545ee8d5b40b01dca11..6b02118de5ec450a581a01cc46825c0fa8ecb481 100644 (file)
@@ -546,14 +546,11 @@ gtk_cell_view_size_allocate (GtkWidget     *widget,
    * allocate every time.
    */
   if (priv->fit_model)
-    {
-      gtk_cell_area_context_allocate_width (priv->context, allocation->width);
-      gtk_cell_area_context_allocate_height (priv->context, allocation->height);
-    }
+    gtk_cell_area_context_allocate (priv->context, allocation->width, allocation->height);
   else if (alloc_width <= 0 && priv->orientation == GTK_ORIENTATION_HORIZONTAL)
-    gtk_cell_area_context_allocate_width (priv->context, allocation->width);
+    gtk_cell_area_context_allocate (priv->context, allocation->width, -1);
   else if (alloc_height <= 0 && priv->orientation == GTK_ORIENTATION_VERTICAL)
-    gtk_cell_area_context_allocate_height (priv->context, allocation->height);
+    gtk_cell_area_context_allocate (priv->context, -1, allocation->height);
 }
 
 static void